package com.kning.poiword.replace;

import com.kning.poiword.model.Chart;
import com.kning.poiword.model.Picture;
import com.kning.poiword.model.Table;
import com.kning.poiword.model.Text;
import org.apache.poi.ooxml.POIXMLDocumentPart;
import org.apache.poi.xwpf.usermodel.XWPFDocument;

import java.util.List;

/**
 * @version : 1.0
 * @author : 王康宁
 * @date : 2020/1/3
 **/
public interface ReplaceDocComponent {

    void replaceText(List<Text> text, XWPFDocument document);

    void replacePicture(List<Picture> picture, XWPFDocument document);

    void replaceTable(List<Table> table, XWPFDocument document);

    void replaceChart(Chart chart, Integer chartType, POIXMLDocumentPart poixmlDocumentPart);

    void replaceChart(Chart chart, POIXMLDocumentPart poixmlDocumentPart);
}
